package com.keta.gen;


import java.util.List;


import org.junit.*;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.AbstractTransactionalJUnit4SpringContextTests;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import org.springframework.test.context.support.AnnotationConfigContextLoader;
import org.springframework.test.context.transaction.TransactionConfiguration;
import org.springframework.test.context.web.WebAppConfiguration;

import com.keta.foundation.entity.User;
import com.keta.foundation.service.UserService;
import com.keta.generator.SimpleModuleGenerator;
import com.keta.generator.db.DataSource;
import com.keta.generator.db.DbFactory;
import com.keta.generator.vo.Table;


@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(loader = AnnotationConfigContextLoader.class) 
public class Generator  {
	
	@Test
	public void gen() throws Exception{
		
		SimpleModuleGenerator gen = new SimpleModuleGenerator();
		gen.setModuleName("文件资源");
		gen.gen("t_file_resource");
	}
	
	

}
